-- GENERATED SPELL FOR [Wyrmcult Hunter] --


function spell0_22308(pUnit, Event) --@Serpent Sting,n/a--
pUnit:FullCastSpellOnTarget(39182,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22308', 15000, 1)
end

function spell1_22308(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22308', 603, 1)
end

function Sorts_22308(pUnit, Event)
local choix_sorts_22308 = math.random(0, 1)
if choix_sorts_22308 == 0 then
pUnit:RegisterEvent('spell0_22308', 1, 1)
end
if choix_sorts_22308 == 1 then
pUnit:RegisterEvent('spell1_22308', 1, 1)
end
end

function mob22308_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22308', math.random(1500, 3000), 1)
end

function mob22308_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22308_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22308_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22308, 1, 'mob22308_Action')
RegisterUnitEvent(22308, 2, 'mob22308_Leave')
RegisterUnitEvent(22308, 3, 'mob22308_Kill')
RegisterUnitEvent(22308, 4, 'mob22308_Die')
